﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class StaffBLL
    {
        public StaffBLL() { }
        StaffDAO dao = new StaffDAO();
        public bool Add(Staff cert)
        {
            return dao.Add(cert);
        }
        public bool Modify(Staff cert)
        {
            return dao.Modify(cert);
        }
        public bool DeleteById(int id)
        {
            return dao.DeleteById(id);
        }
        public IList<Staff> GetAllStaff(int top)
        {
            return dao.GetAllStaff(top);
        }
        public Staff GetStaffBy(string name, string sid, int dep)
        {
            return dao.GetStaffBy(name, sid, dep);
        }

    }
}
